package com.yike.user.api.service;

import com.yike.user.api.service.hystrix.MerchantFeignHystrix;
import com.yike.user.api.vo.MerchantFeignVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service", fallback = MerchantFeignHystrix.class)
public interface MerchantFeignService {

    @GetMapping("/feign/merchant/getMerchantByShopId")
    MerchantFeignVo getMerchantByShopId(@RequestParam("shopId") Long shopId);
}
